package com.xnyzc.lhy.common.penum;


import com.xnyzc.lhy.common.entity.PEnum;

/**
 * 微信企业号枚举
 *
 * @Author:
 * @Date: 2019/1/4 11:34
 */
public enum EWechatCompany implements PEnum<String> {
    partner("合伙人", 4l, 1000003), fm("管家", 5l, 1000004), manager("管理员", 6l, 1000002);

    private String desc;
    private long departmentId;
    private int agentId;

    EWechatCompany(String desc, long departmentId, int agentId) {
        this.desc = desc;
        this.departmentId = departmentId;
        this.agentId = agentId;
    }

    @Override
    public String getValue() {
        return name();
    }

    public long getDepartmentId() {
        return departmentId;
    }

    public int getAgentId() {
        return agentId;
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return desc;
    }
}
